package cn.ytr.crm.query;

import lombok.Getter;
import lombok.Setter;

//用来封装用户传递过来的参数
//通用的查询对象
@Getter@Setter
public class QueryObject {

	//当前页
    protected int currentPage = 1;
	//每页显示多少条数据
    protected int pageSize = 5;

	//计算开始索引
	public int getStart(){
		return (currentPage - 1) * pageSize;
	}
	
}
